﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Presentation.Shell.Interfaces;

namespace Presentation.Shell.Mocks
{
    public class MockLogon : ILogonService
    {
        public bool AuthenticateUser(string userName, string password)
        {
            if (string.IsNullOrWhiteSpace(userName))
            {
                return false;
            }
            if (string.IsNullOrWhiteSpace(password))
            {
                return false;
            }

            bool isAuthenticated = false;

            if (userName.ToLower() == "admin" & password.ToLower() == "admin")
            {
                isAuthenticated = true;
            }
            return isAuthenticated;
        }


        public event Authenticated UserAuthenticated;

        public bool AuthenticateUser(Presentation.Module.Security.Model.User user, string password)
        {
            throw new NotImplementedException();
        }

        public string Password
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public event ButtonPressed LogonTry;



        public string HashPassword(string password)
        {
            throw new NotImplementedException();
        }
    }
}
